HumanFollowing switchCamera "external";
//HumanFollowing = testCiv;
//_finalPosPlayer=getPos HumanFollowing;
/*
 _hndl = ppEffectCreate ["ColorInversion", 1502];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [0.01, 0.2, 0.01];
_hndl ppEffectCommit 1;


_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [1.0, 1.0, 0.0, [0.5, 0.5, 0.5, 0.5], [1.0, 0.0, 1.0, 0.5],[0.0, 1.0, 0.0, 0.0]];
_hndl ppEffectCommit 1;
 */
_hndl = ppEffectCreate ["DynamicBlur", 400];
_hndl ppEffectEnable true;
_hndl ppEffectAdjust [0.0];
_hndl ppEffectCommit 1;

_camera = "camera" camCreate getPos HumanFollowing;//[0,0,200];

_camera camPrepareTarget  HumanFollowing;//[(_civilPosCam select 0),(_civilPosCam select 1),(_civilPosCam select 2)+1.5];
//
	
_camera camSetFov 0.700;
_camera cameraEffect ["internal","back"];
_camera camCommitPrepared 0;

waitUntil { camCommitted _camera };
showCinemaBorder false;

_camera camPrepareRelPos  [0,-10,5];	
_camera camCommitPrepared 0;
lastTime=time;

_rayon=10.0;

_lastTime=time;
TankMap mapCenterOnCamera true;
while{IsFollowHuman}do{
	_objToFollow=(vehicle HumanFollowing);
	//_civilPosCam=getPos HumanFollowing;    
	//_dir=getDir HumanFollowing;
	
	_xPos=(cos (CamAngle+270))*((CamDistance));
	_yPos=(sin (CamAngle+270))*((CamDistance));
	//"camAngle : "+str CamAngle call debug;
	// replace the camera if the civil moved during the cutscene
	//_camera camSetTarget [(_civilPosCam select 0),(_civilPosCam select 1),(_civilPosCam select 2)+1.5];
	_camera camPrepareTarget  _objToFollow;//[(_civilPosCam select 0),(_civilPosCam select 1),(_civilPosCam select 2)+1.5];
	
	
	_camera camPrepareRelPos  [_xPos,_yPos,(CamHeight+2)];	
	
	_camera camCommitPrepared 1;
	sleep(1/50);
	
	
	
};

TankMap mapCenterOnCamera false;
ppEffectDestroy _hndl;
